﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace WebApi.Models
{
    public class KazuoModel
    {
        public int kzId;
        public string kzName = string.Empty;
        public string createtime = string.Empty;
        public string updateTime = string.Empty;//头像
        public string kazuoDetails = string.Empty;//描述
        public int maxPeopleNum;
        public string FixPice;
        public int nowStatus;
        public int isCanReserve;


        public static KazuoModel GetKazuomodelInfo(DataRow dr)
        {
            KazuoModel userinfo = new KazuoModel();
            userinfo.kzId = Convert.ToInt32(dr["kzId"]);
            userinfo.kzName = Convert.ToString(dr["kzName"]);
            userinfo.createtime = Convert.ToString(dr["createtime"]);
            userinfo.updateTime = Convert.ToString(dr["updateTime"]);
            userinfo.kazuoDetails = Convert.ToString(dr["kazuoDetails"]);
            userinfo.FixPice = Convert.ToString(dr["FixPice"]);
            userinfo.maxPeopleNum = Convert.ToInt32(dr["maxPeopleNum"]);
            userinfo.nowStatus = Convert.ToInt32(dr["nowStatus"]);
            userinfo.isCanReserve = Convert.ToInt32(dr["isCanReserve"]);
            return userinfo;
        }
    }
}